package com.b.service;

import com.b.domain.Video;
import com.b.vo.Result;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.elasticsearch.core.SearchPage;

import java.util.List;
public interface VideoService{


    boolean deleteByPrimaryKey(Integer id);

    int insert(Video record);

    int insertSelective(Video record);

    Video selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Video record);

    int updateByPrimaryKey(Video record);

    List<Video> getAll();

    List<Video> list();


    Result audit(Integer id, String result, String reason);

    Result delete(Integer id);

    SearchPage<Video> getByCategoryId(Integer CategoryId, PageRequest pageRequest);

    Result update(Integer videoId, Integer categoryId);

    List<Video> list2();
}
